import request from '@/utils/request'
// 辅导员管理接口

// 查询辅导员信息列表
export function counsellorList(query) {
  return request({
    url: '/clr/counsellor/list',
    method: 'get',
    params: query
  })
}
// 查询优秀辅导员推荐列表
export function xlntclrLIst(query) {
  return request({
    url: '/clr/xlntclr/list',
    method: 'get',
    params: query
  })
}
// 查询未分配辅导员的教师信息列表

export function unabsorbedList(query) {
  return request({
    url: '/basic/teacher/unabsorbedList',
    method: 'get',
    params: query
  })
}
// 新增辅导员信息

export function counsellor(query) {
  return request({
    url: '/clr/counsellor',
    method: 'post',
    data: query
  })
}
// 删除辅导员信息
export function delCounsellor(query) {
  return request({
    url: '/clr/counsellor/' + query,
    method: 'delete',
  })
}
// 获取辅导员信息详情
export function counsellorInfor(query) {
  return request({
    url: '/clr/counsellor/' + query,
    method: 'get',
  })
}
// 根据教师ID查询辅导员信息
export function counsellorInforTid(tId) {
  return request({
    url: '/clr/counsellor/tId/' + tId,
    method: 'get',
  })
}
// 查询辅导员信息详细信息
export function counsellorCid(cId) {
  return request({
    url: '/clr/counsellor/' + cId,
    method: 'get',
  })
}
// 修改辅导员信息
export function updataCounsellor(query) {
  return request({
    url: '/clr/counsellor',
    method: 'put',
    data: query
  })
}
//二级学院领导分配班级
export function classAdd(query) {
  return request({
    url: '/clr/counsellor/class/add',
    method: 'post',
    data: query
  })
}
//二级学院领导分配班级
export function teacherAdjust(query) {
  return request({
    url: '/clr/counsellor/teacher/',
    method: 'PUT',
    data: query
  })
}
//二级学院领导分配班级
export function classRemove(query,data) {
  return request({
    url: '/clr/counsellor/class/remove/' + query,
    method: 'post',
    params: data
  })
}